Environment:
SSH server:192.168.100.29 server.example.comSSH client:192.168.100.30 client.example.com
Create secret key authentication through root user to implement Shell script management, distribution, deployment
First, the client side creates
OpenSSH
OpenSSH is a free open-source implementation of the SSH (Secure Shell) protocol. It uses secure and encrypted network connection tools instead of Telnet, FTP, rlogin, RSH, and rcp tools. OpenSSH supports SSH protocol versions 1.3, 1.5, and 2.
PS: The use of SSH, to manage a large number of servers can bring great convenience. When we access another server from one server, we can enter password access without compromising efficiency. But when we need to access multiple servers, or
For Linux OPS workers, using SSH remote remote server is no longer familiar! Some of the strict settings for SSH also related to server security maintenance, today, I work in the use of SSH experience, do some summary records to the next. (1) After
Editor's Guide: Any system administrator or webmaster is familiar with SSH. This great technology (51cto system channel just expressed thanks to it on Thanksgiving Day) this frees us from having to go to the server room to manage servers, or worry
The 25 SSH commands that must be remembered are free versions of the SSH connection tool. Telnet, rlogin and ftp users may not realize that their passwords transmitted over the Internet are unencrypted, but SSH is encrypted. OpenSSH encrypts all
1, execute command and script on remote host based on password and secret keySsh-t IP "CLI or shell.sh";The 2,C program implements the above functions--based on password-lessPorting the simple C program above to a different system to use the
One:The shell is the shell of the Linux/unix system, and it can be understood as the command line interface, where you enter and execute the command line.Bash (born again shell) is one of the shell's most commonly used shells. you run on your Linux:
Excerpt a On the 192.168.42.142 machine.1) Run: ssh-keygen-t RSA2) Then take two returns (select default)3) Run:Ssh-copy-id-i/root/.ssh/id_rsa.pub [email protected]or ordinary users:Ssh-copy-id [email protected]4) Re-enter the root password on the 16
> Transfer
> OpenSSH is a free version of the SSH connection tool. Telnet, rlogin and FTP users may not realize that their passwords transmitted over the Internet are unencrypted, but SSH is encrypted. OpenSSH encrypts all communications (including
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.